package com.mybatisplus.mp.aspect;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Aspect
//@Component
public class AopTest {
    @Around(value = "@annotation(com.mybatisplus.mp.myanno.Retry)")
    public void aroundTest(ProceedingJoinPoint joinPoint)  {
        System.out.println("通知前处理");
        try {
            joinPoint.proceed();

        } catch (Throwable throwable) {
            try {
                joinPoint.proceed();
            } catch (Throwable throwable1) {

            }
        }
        System.out.println("通知后处理");
    }


}
